package com.atguigu.gmall.item.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @ author     ：廖传港
 * @ date       ：Created in 2020/12/26 20:06
 * @ description：暴露出去的接口
 * @ modified By：
 * @ ersion:
 */
@FeignClient(name = "service-item")
public interface ItemFeignClient {

    //获取商品详情页面 所有数据
    @GetMapping("/api/item/{skuId}")
    public Map getItem(@PathVariable Long skuId);
}
